function formatString(str?: string): string {
  if (str) {
    return str.replace(/\t/g, '').replace(/^\n/, '').replace(/\n&/, '')
  } else {
    return ''
  }
}

export default formatString
